package com.jiukuaidao.library.config.db.impl;

import com.jiukuaidao.library.Config;
import com.jiukuaidao.library.config.db.IDBConfig;

import io.realm.RealmConfiguration;

/**
 * @author : BinarySatan
 *         数据库配置类
 */
public class ZLDBConfig implements IDBConfig {

    public static final String DB_NAME = "zldb" + SUFFIX;

    public static final int DB_VERSION = 0;


    @Override
    public RealmConfiguration createDBConfig() {
        RealmConfiguration config = new RealmConfiguration
                .Builder(Config.mContext)
                .name(DB_NAME)
                .schemaVersion(DB_VERSION)
                .migration(new ZLDBMigration())
                .build();

        return config;
    }
}
